package com.ruoyi.lvlian.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.lvlian.domain.WarehouseRef;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;

@Data
@ToString
@ApiModel(value = "销售物流关联采购物流对象", description = "销售物流关联采购物流对象 lv_warehouse_ref")
public class WarehouseRefVo extends WarehouseRef {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "毛利")
    private double grossProfit;

    @ApiModelProperty(value = "仓储时间")
    private String  storageTime;



    public double getGrossProfit() {
        return getBuyerSettlementAmount() -getSellerSettlementAmount();
    }
}
